package versuch.client;


import com.google.gwt.user.client.rpc.AsyncCallback;


/**
 * The async counterpart of {@link PollService}.
 */
public interface PollServiceAsync {
	
	/**
	 * The async counterpart of {@link PollService#login(String, String)}. Commented out as not important
	 * for alpha version.
	 */
	//void login(String name, String password, AsyncCallback<User> callback)
			//throws IllegalArgumentException;
	
	/**
	 * The async counterpart of {@link PollService#requestLectures(User)}. Commented out as not important
	 * for alpha version.
	 */
	//void requestLectures(User user, AsyncCallback<List<Lecture>> callback);
	
	/**
	 * The async counterpart of {@link PollService#requestFeedback(Lecture)}. Commented out as not important
	 * for alpha version.
	 */
	//void requestFeedback(Lecture lecture, AsyncCallback<List<Feedback>> callback);
	
	void submitFeedback(Feedback feedback, AsyncCallback<Boolean> callback);
	
}
